-- GENERATED SPELL FOR [Unliving Atal'ai] --


function spell0_5267(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_5267', 680, 1)
end

function spell1_5267(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_5267', 543, 1)
end

function Sorts_5267(pUnit, Event)
local choix_sorts_5267 = math.random(0, 1)
if choix_sorts_5267 == 0 then
pUnit:RegisterEvent('spell0_5267', 1, 1)
end
if choix_sorts_5267 == 1 then
pUnit:RegisterEvent('spell1_5267', 1, 1)
end
end

function mob5267_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5267', math.random(1500, 3000), 1)
end

function mob5267_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5267_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5267_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5267, 1, 'mob5267_Action')
RegisterUnitEvent(5267, 2, 'mob5267_Leave')
RegisterUnitEvent(5267, 3, 'mob5267_Kill')
RegisterUnitEvent(5267, 4, 'mob5267_Die')
